import {defineStore} from 'pinia'
const useCountStore = defineStore('count',{
  state:()=>{
    return{
      count:10
    }
  },
  getters:{
    doubleCount:state=>state.count*2
  },
  actions:{
    addCount(num:number){
      this.count = num
    }
  }
})
export default useCountStore